package com.css.fxfzcpxx.modules.courseManage.vo;

import com.css.fxfzcpxx.base.attachment.entity.AttachmentInfoEntity;
import com.css.fxfzcpxx.modules.util.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: zhangSongRui
 * @CreateTime: 2023/03/20
 * @Description: 线上课堂滚动分页实体
 */
@Data
public class OnlineCourseVO extends BaseEntity {
    //主键id
    private String id;
    //课程名称
    private String courseName;
    //课程类别名称
    private String courseType;
    //课程类别id
    private String courseTypeId;
    //发布日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date releaseDate;
    //课堂练习试卷id
    private String exerciseId;
    //课堂练习 0有1没有
    private String exercise;
    //发布状态 0发布1没有发布
    private String releaseState;
    //课件(mp3,mp4等,只允许一个)
    private String courseFile;
    //是否允许下载 0能1不能
    private String download;
    //课程封面(建议大小不超过2m)
    private String cover;
    //课程简介
    private String courseIntroduction;
    //备注
    private String note;
    //下载文件实体
    private AttachmentInfoEntity attachmentInfoEntity;


    //如果这个值不为null 则说明该用户考过这个课的考试
    private String courseId;
}
